import request from '@/utils/request'

// 查询课程章节列表
export function listcourseCatalog(query) {
  return request({
    url: '/system/courseCatalog/list',
    method: 'get',
    params: query
  })
}

// 查询课程章节详细
export function getcourseCatalog(id) {
  return request({
    url: '/system/courseCatalog/' + id,
    method: 'get'
  })
}

// 新增课程章节
export function addcourseCatalog(data) {
  return request({
    url: '/system/courseCatalog',
    method: 'post',
    data: data
  })
}

// 修改课程章节
export function updatecourseCatalog(data) {
  return request({
    url: '/system/courseCatalog',
    method: 'put',
    data: data
  })
}

// 删除课程章节
export function delcourseCatalog(id) {
  return request({
    url: '/system/courseCatalog/' + id,
    method: 'delete'
  })
}

// 导出课程章节
export function exportcourseCatalog(query) {
  return request({
    url: '/system/courseCatalog/export',
    method: 'get',
    params: query
  })
}